export const EvaluationStandards = {
  // 评分维度与权重
  dimensions: {
    accuracy: { weight: 0.4, name: '准确性' },
    completion: { weight: 0.2, name: '完整性' },
    creativity: { weight: 0.2, name: '创造性' },
    reasoning: { weight: 0.2, name: '推理能力' }
  },

  // 评分标准模板
  templates: {
    default: [
      {
        criterion: '答案正确性',
        weight: 0.4,
        description: '评估答案的准确度和正确性'
      },
      {
        criterion: '解题思路',
        weight: 0.3,
        description: '评估解题思路的清晰度和合理性'
      },
      {
        criterion: '表述完整性',
        weight: 0.3,
        description: '评估答案表述的完整性和规范性'
      }
    ],
    essay: [
      {
        criterion: '内容相关性',
        weight: 0.3,
        description: '评估内容与主题的相关性'
      },
      {
        criterion: '逻辑结构',
        weight: 0.3,
        description: '评估文章的逻辑结构'
      },
      {
        criterion: '语言表达',
        weight: 0.2,
        description: '评估语言表达的准确性和流畅性'
      },
      {
        criterion: '创新思维',
        weight: 0.2,
        description: '评估思维的创新性和深度'
      }
    ]
  },

  // 分数等级划分
  scoreRanges: [
    { min: 90, max: 100, level: 'excellent', description: '优秀' },
    { min: 80, max: 89, level: 'good', description: '良好' },
    { min: 70, max: 79, level: 'fair', description: '中等' },
    { min: 60, max: 69, level: 'pass', description: '及格' },
    { min: 0, max: 59, level: 'fail', description: '不及格' }
  ],

  // AI评分配置
  aiScoring: {
    enabled: true,
    confidenceThreshold: 0.8, // AI评分可信度阈值
    humanReviewThreshold: 0.7, // 需要人工复核的阈值
    retryAttempts: 3, // AI评分重试次数
    metrics: {
      accuracy: { weight: 0.4, threshold: 0.75 },
      completion: { weight: 0.2, threshold: 0.8 },
      creativity: { weight: 0.2, threshold: 0.7 },
      reasoning: { weight: 0.2, threshold: 0.75 }
    }
  },

  // 批注类型配置
  annotationTypes: {
    comment: { name: '评论', color: '#FF0000' },
    correction: { name: '纠正', color: '#00FF00' },
    highlight: { name: '高亮', color: '#FFFF00' },
    audio: { name: '音频', icon: 'audio-icon' },
    video: { name: '视频', icon: 'video-icon' }
  } as const,

  // 评分反馈模板
  feedbackTemplates: {
    excellent: [
      '答案非常出色，思路清晰，表述准确。',
      '展现了深入的理解和创新性思维。',
      '逻辑严密，论述充分，值得表扬。'
    ],
    good: [
      '答案较好，基本思路正确。',
      '理解到位，有一定的分析深度。',
      '表述比较清晰，论证较为充分。'
    ],
    fair: [
      '答案基本正确，但有待完善。',
      '理解基本到位，但深度不够。',
      '表述基本清晰，但论证不够充分。'
    ],
    pass: [
      '答案存在一些问题，需要改进。',
      '理解有偏差，需要加强。',
      '表述不够清晰，论证较为薄弱。'
    ],
    fail: [
      '答案存在严重问题，需要重新学习。',
      '理解有较大偏差，需要认真复习。',
      '表述混乱，缺乏必要的论证。'
    ]
  }
};

export const DefaultEvaluationSettings = {
  autoSave: true,
  autoPause: false,
  batchSize: 20,
  reviewThreshold: 0.8,
  aiAssistanceEnabled: true,
  requireDoubleCheck: true,
  annotationLimit: 100,
  evaluationTimeout: 30 * 60 * 1000, // 30分钟
  disputeWindow: 7 * 24 * 60 * 60 * 1000 // 7天
};
